<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SendSubscribeUser extends BaseModel
{
    use SoftDeletes;

    protected $dateFormat = 'U';  //整型数据

    public $table = 'send_subscribe_user';
    public $timestamps = true;
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    public $hidden = [
        "deleted_at",
        "create_time",
        "update_time"
    ];
    
    /**
     * 获取当前时间
     *
     * @return int
     */
    public function freshTimestamp()
    {
        return time();
    }

}
